<template>
	<view class="container">
		<image class="bg"
			src="https://img2.baidu.com/it/u=1737067577,8701429&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889"
			mode="aspectFill"></image>
		<view class="main">
			<view class="list">
				<view class="item" v-for="i in 20">
					<view class="text">拉布拉多犬拉布拉多犬拉布拉多犬拉布拉多犬</view>
					<image
						src="https://img1.baidu.com/it/u=3216188644,3898639098&fm=253&fmt=auto&app=120&f=JPEG?w=801&h=800"
						mode="aspectFill"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		onShow() {

		},
		onLoad(option) {

		},
		methods: {
			init() {
				this.$req.get("/api/barrage").then((res) => {
					if (res.code == 0) {

					}
				});
			}
		},
	};
</script>

<style lang="scss" scoped>
	.container {
		background-color: #ffffff;
		height: 100%;
		padding-top: var(--status-bar-height);
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		box-sizing: border-box;

		.bg {
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
		}

		.main {
			position: relative;
			max-height: 100%;
			overflow: auto;
		}
	}


	.list {
		margin-top: 40rpx;
		.item {
			display: flex;
			padding: 0 40rpx;
			margin-bottom: 20rpx;
			
			.text {
				line-height: 80rpx;
				width: calc(100% - 100rpx);
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}

			image {
				width: 80rpx;
				height: 80rpx;
			}
		}
	}
</style>